package org.zero.onlinesubject.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.zero.onlinesubject.common.vo.ClassInfoVo;
import org.zero.onlinesubject.entity.ClassInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface ClassInfoService extends IService<ClassInfo> {

    List<ClassInfo> getClassList(String userId);

    Boolean joinClass(String classId, String userId);

    Boolean createClass(ClassInfo classInfo);

    boolean asignTeacherToClass(String userId, String[] classList);

    List<ClassInfo> getClassByCond(String classname, Integer current, Integer size);

    List<ClassInfo> getJoinClass(String userid);

    boolean removeCls(String classId);
}
